spec(processes): parallel fork/join step (kind: parallel) - #7
Open
delchev wants to merge 2 commits into
Open
Conversation
A parallel step runs its branch steps concurrently and joins before next - a parallel-gateway fork/join. v1: >=2 single-step task branches joining directly, no branch chains or nested parallels (recorded under Planned).
A branch continues through its own routing (its `next`, a decision's `then`/`else`, a boundary timer branch) and may itself be a `parallel`. Everything reachable that way belongs to the branch; a step declaring no routing is a terminal and joins, and the new routing literal `join` converges on the innermost enclosing join gateway - which is how a decision inside a branch rejoins from both arms. Records the rules that keep a branch a closed sub-flow: `join` only inside a branch (and never a step name), no `end` inside a branch, no step in two branches, a branch entered through its fork only, and `next` optional on a nested fork. Drops the corresponding "Planned" entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents a
kind: parallelstep: run branch steps concurrently and rejoin beforenext(a parallel-gateway fork/join). At least two branches, each a single declared task step that joins directly;nextis a declared step orend. Multi-step branch chains and nested parallels are recorded under Planned. Leaving open for the maintainer.